package com.ele.dao;

import com.ele.pojo.FoodCategory;

import java.sql.SQLException;
import java.util.List;

public interface FoodCategoryDao {
    /**
     * 添加菜品分类
     */
    Integer foodCategoryAdd(String categoryName, String shopId) throws SQLException;
    /**
     * 修改菜品分类
     */
    Integer foodCategoryUpdate(String categoryName , String categoryId) throws SQLException;
    /**
     * 删除菜品分类
     */
    Integer foodCategoryDelete(String categoryId) throws SQLException;
    /**
     * 分页查询
     */
    List<FoodCategory> findFoodCategory(String currentPage , String pageSize , String shopId ) throws SQLException;
    /**
     * 查询当前店铺对应的分类的总记录数
     */
    Long foodCategoryCount( String shopId ) throws SQLException;

    /**
     * 根据店铺id查询菜品分类数据
     * @param shopId
     * @return
     */
    List<FoodCategory> findAllFoodCategory(String shopId) throws SQLException;

    /**
     * 根据id查询
     * @param categoryId
     * @return
     */
    FoodCategory findFoodCategoryById(Integer categoryId) throws SQLException;
}
